<template>
  <el-form inline class="table-search" v-bind="$attrs" v-on="$listeners">
    <div class="form-search">
      <slot />
    </div>
    <div class="button-box">
      <slot name="btn" />
    </div>
  </el-form>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.table-search ::v-deep {
  .el-form-item {
    margin: 24px 8px 24px 0;
  }
  .el-form-item__label {
    line-height: 32px;
  }
  .el-form-item__content {
    line-height: 36px !important;
  }
  .el-button + .el-button {
    margin-left: 0px;
  }
}
.form-search ::v-deep {
  .el-button {
    margin-right: 8px;
  }
}
.button-box {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  ::v-deep {
    .el-button {
      margin-left: 0;
      margin-right: 8px;
    }
  }
}
</style>
